<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>懒人家居后台管理</title>
<link href="admin.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript" src="js/admin.js"></script>
<script language="JavaScript" type="text/javascript" src="js/kindeditor.js"></script>
<script language="javascript" type="text/javascript">
	KE.show({
		id : 'memo',
		skinType : 'tinymce',
		resizeMode : 1, //编辑器只能调整高
		items : [
            'source', 'preview', 'fullscreen', 'print', 'undo', 'redo', 'cut', 'copy', 'paste',
            'plainpaste', 'wordpaste', 'justifyleft', 'justifycenter', 'justifyright',
            'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
            'superscript', 'date', 'time', 'specialchar', 'emoticons', 'link', 'unlink', '-',
            'title', 'fontname', 'fontsize', 'textcolor', 'bgcolor', 'bold',
            'italic', 'underline', 'strikethrough', 'removeformat', 'selectall', 'image',
            'flash', 'media', 'layer', 'table', 'hr', 'about'
        ]
	});
</script>
</head>
<body>
<table width="100%" height="500" class="whiteTable" border="0" cellpadding="0" cellspacing="0" style="white-space:normal;word-break:break-all;">
  <tr>
    <td class="pathBg" align="left" valign="middle">&nbsp;&nbsp;沙发管理 &gt;&gt; 修改沙发</td>
  </tr>
  <tr>
    <td height="460" align="left" valign="top"><form action="modSofa.action" method="post" id="form1" name="form1" enctype ="multipart/form-data">
        <table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="50" colspan="4" align="center">&nbsp;              <input type="hidden" id="id" name="id" value="<s:property value='sofa.id'/>"/>
            请填写沙发的详细信息</td>
          </tr>
          <tr>
            <td width="60" height="25" align="right" valign="middle">品 &nbsp;名：</td>
            <td width="330"><input name="name" type="text" id="name" size="30" value="<s:property value='sofa.name'/>"><font color="red">*</font></td>
            <td height="25" align="right" valign="middle">尺 &nbsp;寸：</td>
            <td><input name="size" type="text" id="size" size="30" value="<s:property value='sofa.size'/>"></td>
          </tr>
		  <tr>
            <td height="25" align="right" valign="middle">重 &nbsp;量：</td>
            <td><input name="weight" type="text" id="weight" size="30" value="<s:property value='sofa.weight'/>"></td>
            <td height="25" align="right" valign="middle">包 &nbsp;装：</td>
            <td><input name="packing" type="text" id="packing" size="30" value="<s:property value='sofa.packing'/>"></td>
		  </tr>
		  <tr>
            <td height="25" align="right" valign="middle">面 &nbsp;料：</td>
            <td><input name="cloth" type="text" id="cloth" size="30" value="<s:property value='sofa.cloth'/>"></td>
            <td height="25" align="right" valign="middle">库 &nbsp;存：</td>
            <td><input name="number" type="text" id="number" size="30" value="<s:property value='sofa.number'/>"></td>
		  </tr>
		  <tr>
            <td height="25" align="right" valign="middle">价 &nbsp;格：</td>
            <td><input name="prize" type="text" id="prize" size="30" value="<s:property value='sofa.prize'/>"></td>
            <td height="25" align="right" valign="middle">运 &nbsp;费：</td>
            <td><input name="yunfei" type="text" id="yunfei" size="30" value="<s:property value='sofa.yunfei'/>"></td>
		  </tr>
		  <tr>
            <td height="25" align="right" valign="middle">图 &nbsp;片：</td>
            <td><input name="upload" type="file" id="upload" size="30"></td>
            <td height="25" align="right" valign="middle">推荐度：</td>
            <td><s:select name="recommend" list="#{'1':'1', '2':'2', '3':'3','4':'4','5':'5'}" value="sofa.recommend" required="true" theme="simple"/></td>
		  </tr>
		  <tr>
            <td height="25" align="right" valign="top">备 &nbsp;注：</td>
            <td colspan="3" style="padding-top:5px"><textarea name="memo" cols="85" rows="13" id="memo"><s:property value='sofa.memo'/></textarea></td>
          </tr>
          <tr>
            <td height="30" colspan="2" align="right"><a href="#" onClick="submitSofa()" class="add">提交</a></td>
            <td colspan="2" style="padding-left:10px"><a href="#" onClick="javascript:document.location.href='listSofa.action';" class="add">取消</a></td>
          </tr>
        </table>
    </form></td>
  </tr>
</table>
</body>
</html>
